package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc FinanceAccountDto
 * @使用场景
 */
@Data
public class FinanceAccountDto extends BaseDto implements Serializable {

  /**
   * 对象名称
   */
  @ApiModelProperty("对象名称")
  private String objectName;
/**
     * 关联归属主体ID 
     */
    @NotNull(message = "关联归属主体ID不能为空")
@ApiModelProperty("关联归属主体ID")
    private String	 accountObjectId;

    /**
     * 账户归属内容类型 TARGET:目标 TARGET_CATEGORY:目标分类 OBJECTIVE:指标 DEPT:部门
     */
    @NotNull(message = "账户归属内容类型不能为空")
@ApiModelProperty("账户归属内容类型")
    private String	 accountOwnershipType;
/**
     * 冗余账户归属内容标识 
     */
    @ApiModelProperty("冗余账户归属内容标识")
    private String	 accountContentCode;

    private String targetCycleContentTypeCode;



@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      FinanceAccountDto that = (FinanceAccountDto) o;
      return  objectName == that.objectName&&accountObjectId == that.accountObjectId&&accountOwnershipType == that.accountOwnershipType&&accountContentCode == that.accountContentCode&&targetCycleContentTypeCode == that.targetCycleContentTypeCode;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), objectName,accountObjectId,accountOwnershipType,accountContentCode,targetCycleContentTypeCode);
    }

}
